
function setDataCompany(data) {
    $("#logo").attr('src', data.logo);
    $("#companyName").html(data.name);
    $("#qrCodeIndex").attr("src", data.qrCodeIndex);
    $("#qrCodeIndexTitle").html(data.qrCodeIndexTitle);
    $("#qrCodeWeiXin").attr("src", data.qrCodeWeiXin);
    $("#qrCodeWeiXinTitle").html(data.qrCodeWeiXinTitle);
    $("#recordMessage").html(data.recordMessage);
    $("#recordNumber").html(data.recordNumber);
    $("#companyAddress").html(data.address);
    $("#companyAddressImg").attr("src", data.addressImg);
    $("#companyPhone").html(data.phone);
    $("#companyPhoneImg").attr("src",data.phoneImg);
    $("#companyEmail").html(data.email);
    $("#companyEmailImg").attr("src",data.emailImg);
    $("#consultingCenter").html(data.consultingCenter);
    $("#companyOnline").html(data.online);
    $("#nickName").html(data.nickName);
    $("#tag").html(data.tag);
    $("#companyContent").html(data.content);
}

/**
 *
 */
function setConsultingData(data) {
    let html = "";
    for (let i = 0; i < data.length; i++) {
        html += "<div>" + data[i].content + "</div>";
    }
    $("#consulting").html(html);
}

/**
 * 第三方网站导航
 */
function setNavWebsiteData(data) {
    let html = "";
    for (let i = 0; i < data.length; i++) {
        if (data[i].typeName === "第三方网站导航") {
            html += "<div><img src=" + data[i].img + "></div>";
        }
    }
    $("#websiteNav").html(html);
}

/**
 * Online
 */
function setOnlineData(data) {
    let html = "";
    for (let i = 0; i < data.length; i++) {
        html += "<div>" + data[i].content + "</div>";
    }
    $("#online").html(html);
}

/***
 * 一级导航
 * @param data
 */
function setNavFirstData(data) {
    let html = "";
    for (let i = 0; i < data.length; i++) {
        if (data[i].typeName === "一级导航") {
            html += "<a href=" + data[i].href + "><div>" + data[i].name + "</div></a>";
        }
    }
    $("#firsNav").html(html);

}